/*
 * @Author: your name
 * @Date: 2020-05-05 14:40:18
 * @LastEditTime: 2020-05-11 13:33:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \glutinous_rice_takeaway\src\store\state.js
 */
/**
 * 单一状态树
 * vuex 操作顺序：state.js -> mutations-type.js -> mutations.js -> getters.js
 */

import store from '../assets/js/store'
const playMode = {
    sequence: 0,
    loop: 1,
    random: 2
}

const state = {
    isLogin: false,
    userName: '',
    singer: {},

    playing: false,

    fullScreen: false,

    playlist: [],

    sequenceList: [],

    mode: playMode.sequence,

    currentIndex: -1,

    songlist: {},

    rankList: {},

    searchHistory: store.getStorage,

    playHistory: store.getPlayStorage,

    favoriteList: store.getFavorite
}

export default state